<?php
// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.
//
//

require_once "lib/common.php";
$pid = $_GET['pid'];
//echo(pic_info($pid));

$json = file_get_contents('php://input');

$query = sprintf("update ".TT_DBTABLEPRE."pic set marks = '%s' where id = '%s'",
        base64_encode($json), $pid);
$DB->result_first($query);
$uid = $DB->insert_id();

?> 
